package chp3;

import java.util.Scanner;

public class InputTest {
    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);

        System.out.println("What is your name?");
        String name = in.nextLine();

        System.out.println("How old are you?");
        Integer age = in.nextInt();

        System.out.println("Hello, " + name + ", Next year, you will be " + (age + 1));

        System.out.printf("%.2f", 1000.0/3);

        System.out.printf("%+.2f", 1000.0/3);
    }
}
